package com.yhq.basic.design.singleton;

import java.io.Serializable;

/**
 * 单例模式
 * 懒汉式-静态内部类
 *
 * @author hqyin
 * @date 2023/2/3 11:00 上午
 */
public class Singleton6 implements Serializable {
    private Singleton6() {

    }

    private static class Singleton6Instance {
        private static final Singleton6 INSTANCE = new Singleton6();
    }

    public static Singleton6 getInstance() {
        return Singleton6Instance.INSTANCE;
    }
}
